var util= require('util');

var OAuth= require('oauth').OAuth;

var oa= new OAuth("https://api.twitter.com/oauth/request_token",
                  "https://api.twitter.com/oauth/access_token",
                  "uD1gI1xqoMwh7PiuIvMVDg",
                  "QgAyUxndTbZZ0SlLOSTSVF4SjExLXZELCUwHz8BrQ",
                  "1.0",
                  null,
                  "HMAC-SHA1");

var oauth_access_token = '82508643-5WVTljoAhWzvNVMgdzPgb1Ksz9dhjhCi01Q4Cib9j';
var oauth_access_token_secret = '6F1JOIcc0r7SfNcTA0AXqQ4RbISUaw1vPlGmb2TU';

oa.post("https://api.twitter.com/1.1/statuses/update.json", 
		oauth_access_token, oauth_access_token_secret, {status: "Twitter 연동 테스트.. 한글도 되네..ㅋㅋㅋㅋ"}, "text/plain", function(error, data) {
	console.log('error: ' + JSON.stringify(error));
	console.log('data: ' + data);
});